import { createRouter, createWebHashHistory } from 'vue-router'
const Home = () => import('../views/Home.vue')
import project from '../views/project/router'//项目信息
import login from '../views/login/router'//项目信息
import industrySupervision from '../views/project/router'
import settings from '../views/settings/router'
import IndustryMgt from '../views/IndustryMgt/router'
import risk from '../views/risk/router'
const routes = [
  {
    path: '/Home',
    name: 'Home',
    component: Home
  },
  {
    path: '/profile/:id',
    name: 'Profile',
    component: function () {
      return import(/* webpackChunkName: "profile" */ '../views/Profile.vue')
    },
  },
  
  ...project,
  ...login,
  ...industrySupervision,
  ...settings,
  ...IndustryMgt,
  ...risk
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
